package com.zxc.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxc.entity.SysPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    List<SysPermission> selectAllPermissionAndRoleId(@Param("pageNo")Integer pageNo,
                                                     @Param("pageSize")Integer pageSize,
                                                     @Param("roleId")Integer roleId);

    int selectAllPermissionCount(Integer roleId);
}
